import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app';
Vue.use(Vuex)
import user from './modules/user';
Vue.use(Vuex)
export default new Vuex.Store({
    state: {},
    mutations: {},
    getters: {
        sidebar: (state) => state.app.sidebar,
        name: (state) => state.user.name,
        roleid: (state) => state.user.roleid
    },
    actions: {},
    modules: {
        app,
        user
    }
})